import axios from 'axios'
import base from '@/utils/config/base'

// 获取所有机构接口
export const getAllSubIns = function(params) {
  return axios({
    url: base.prod + '/getAllSubIns',
    method: 'get',
    params: params
  })
}


// 获取机构接口
export const getSubIns = function(params) {
  return axios({
    url: base.prod + '/getSubIns',
    method: 'get',
    params: params
  })
}

// 获取审核机构接口
export const getSubInsAudit = function(params) {
  return axios({
    url: base.prod + '/getSubInsAudit',
    method: 'get',
    params: params
  })
}

// 审核机构接口
export const getAuditSubIns = function(params) {
  return axios({
    url: base.prod + '/getAuditSubIns',
    method: 'get',
    params: params
  })
}

// 新增机构
export const AddInsWeb = function(params) {
  return axios({
    url: base.prod + '/AddInsWeb',
    method: 'post',
    data: params
  })
}

// 新增审核机构
export const AddInsWebAudit = function(params) {
  return axios({
    url: base.prod + '/AddInsWebAudit',
    method: 'post',
    data: params
  })
}

// 删除机构
export const deleteIns = function(params) {
  return axios({
    url: base.prod + '/deleteIns',
    method: 'get',
    params: params
  })
}

// 删除审核机构
export const deleteInsAudit = function(params) {
  return axios({
    url: base.prod + '/deleteInsAudit',
    method: 'get',
    params: params
  })
}
